#ifndef _MBPORTV_HAL_H_
#define	_MBPORTV_HAL_H_

#include "stdint.h"
#include "mbdef.h"

#ifdef   _MBPORTV_MODULE_
#define  MB_EXT
#else
#define  MB_EXT  extern
#endif      


MB_EXT mbObjType mbvObj;
MB_EXT mbCmdBuffType mbvCmdBuff[32];

void mbvInit(mbModeType mbMode, uint32_t ulBaudRate, mbParityType eParity);
void mbvTimeoutHandle(void);
void mbvRtuTimerRun(void);

#undef MB_EXT

#endif	/* _MBPORTZ_HAL_H_ */

